Open
Description
undetected chromedriver worked well till yesterday but now, cloudflare improved and the chromedriver is not bypassing cloudflare. I have attached the screenshot of it. cloudflare is just looping the captcha when selenium is running. When I close it, the website loads.
This is my code snippet
It works fine when the script isn't running.
I also tried changing the binary to chrome rather than brave, but the issue still persists
Activity
zakio0403 commentedon Jul 11, 2023
I'm on the same spot, was working fine all this month and suddenly today it doesn't work
MrKhosrojerdi commentedon Jul 11, 2023
I have the same problem as you
vndhote commentedon Jul 11, 2023
I guess it gonna take some time to improve the logics in undetected chrome driver to be undetectable. Anyone having solution to this kindly send me friend request and dm me on discord
My discord Id : vivek9646
sh-erfan commentedon Jul 11, 2023
Same issue for me. Crawling 24 hours a day during last month, I got stuck a few hours ago.
IMPORTANT: When I close my bot and browser is still open, bypass is successful. This is strange for me.
benkrej commentedon Jul 11, 2023
Apparently that's an issue with the cloudflare captchas. I found that it works when dev tools are open. Adding the following line resolved the issue for me.
chrome_options.add_argument("--auto-open-devtools-for-tabs") # automatically open dev tools on every new tab(This is a not a pretty solution ofc, I had no time to dive deeper yet)
digitalnomad91 commentedon Jul 11, 2023
I tried adding the dev-tools option @benkrej but I'm just getting the word "None":
options.add_argument( '--headless' )
options.add_argument( '--auto-open-devtools-for-tabs' )
chrome = uc.Chrome( options = options )
message = chrome.get( 'http://bscscan.com/contractsVerified' )
#chrome.save_screenshot( 'datadome_undetected_webddriver.png' )
print(message)
benkrej commentedon Jul 11, 2023
You will have to scrape and structure the data yourself,
driver.getreturns None. I suggest you to look into the coding examples.salvecom333 commentedon Jul 11, 2023
god bless you man!
digitalnomad91 commentedon Jul 11, 2023
It worked, thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
punkerpunker commentedon Jul 11, 2023
That worked mate, thanks!
Btw anyone knows how to close it afterwards? Site-specific protections detect me because it's opened.
I've tried action chains with Shift + Ctrl + i, but didn't succeed
jacobprice808 commentedon Jul 12, 2023
Does this not indicate that Cloudflare is perhaps tracking mouse movements now?
vndhote commentedon Jul 12, 2023
Um.. like I tried using action chains to make it look more natural. I don't think so it may be mouse movements. It is possible that it's detecting selenium.
36 remaining items
baptx commentedon Jul 26, 2023
@NCLnclNCL Do you know which JavaScript code they can use to detect this?
benkrej commentedon Jul 26, 2023
@ultrafunkamsterdam is working on it as it seems so it may be worth to wait for his release.
#1420
baptx commentedon Aug 9, 2023
@benkrej The workaround with the tabs switch is still needed with the new version 3.5.2. I also have another issue: #1455.
benkrej commentedon Aug 9, 2023
You have to find a workaround yourself everything published is getting patched very soon.
baptx commentedon Aug 9, 2023
@benkrej Maybe there are things they cannot patch. If I find a workaround, I think I will share it.
benkrej commentedon Aug 9, 2023
Maybe it would be good to approach it another way and try to fix uc so it won't get detected in the first place without any temporary solutions. Would be awesome to have a chromedriver again like it was for the longest time!
baptx commentedon Aug 10, 2023
@benkrej I found a workaround: #1455 (comment)
I hope I did not make a mistake by sharing it :D
benkrej commentedon Aug 10, 2023
@baptx Works only with visible challenges some sites have no visible challenge and therefore are still stuck in the infinite loop. Glad you found a way that works for you!
miha1llumi commentedon Aug 28, 2023
thanks, bro. Everything works.
iprahka commentedon Oct 2, 2023
Youre absolutely right, but at the the same time I just tried to comment out the '--headless' line and it works perfect too without any long loading
Here's my working code version:
Ahmed-Ashraf-Khalil commentedon Nov 23, 2023
i saw this tool online garantee cloudflare verfication to be solved
cons:
the documentation is in chinese and couldn't link it with selenium.
n0nameNPC commentedon May 6, 2024
are you using package for rendering ? For example: Xvfb
Ghxst commentedon May 31, 2024
I am, I can relate to having issues automating my browsers whenever the system is headless and I rely on Xfvb.
Any ideas why or tips to avoid detection of headless systems?